/*
 * @Author: 张笑天
 * @Date: 2018-03-07 17:08:11
 * @Last Modified by: 张笑天
 * @Last Modified time: 2018-03-07 17:08:11
 */
import { WeaTools } from 'ecCom';

const { callApi } = WeaTools;
const rightUrl = '/api/email/view/hasMailViewRights';
const baseUrl = '/api/email/view/mailView';
const dropDownUrl = '/api/email/view/getViewPageDropDown';
const contentUrl = '/api/email/view/mailContentView';
const sentToUrl = '/api/email/view/getAllSendTo';
const readCountUrl = '/api/email/view/mailReadCount';
const readListUrl = '/api/email/view/mailReadList';
const fastReplyUrl = '/api/email/view/fastReply';
const sendApartResultListurl = '/api/email/view/sendApartResultList';
const emailRecallDetailList = '/api/email/view/emailRecallDetailList';

export default {
  getRight: params => callApi(rightUrl, 'GET', params),
  getBase: params => callApi(baseUrl, 'GET', params),
  getDropDown: params => callApi(dropDownUrl, 'GET', params),
  getContent: params => callApi(contentUrl, 'GET', params),
  getSentTo: params => callApi(sentToUrl, 'GET', params),
  getReadCount: params => callApi(readCountUrl, 'GET', params),
  getReadList: params => callApi(readListUrl, 'GET', params),
  doFastReply: params => callApi(fastReplyUrl, 'POST', params),
  getSendApartResultList: params => callApi(sendApartResultListurl, 'GET', params),
  getEmailRecallDetailList: params => callApi(emailRecallDetailList, 'GET', params),
};
